/**
 * Project Name:dsrs-businessservice-domain
 * File Name:ConsumerLogCreateForm.java
 * Package Name:com.bwda.dsrs.businessservice.domain.form.consumerlog;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 *
 */
package com.bwda.dsrs.filecenter.domain.form.userlog;

import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户日志
 *
 * @author liangjianyong
 * @date 2019/4/27
 */
@Data
@ApiModel(description = "用户日志")
public class UserLogCreateForm {

	@ApiModelProperty(value = "用户编号")
	private String userCode;

	@ApiModelProperty(value = "用户姓名")
	private String userName;

	@ApiModelProperty(value = "组织ID")
	private Integer orgId;

	@ApiModelProperty(value = "组织名称")
	private String orgName;

	@ApiModelProperty(value = "IP地址")
	private String ipAddr;

	@ApiModelProperty(value = "访问客户端标识")
	private String userAgent;

	@ApiModelProperty(value = "文件ID")
	private Integer fileId;

	@ApiModelProperty(value = "文件名称，全称aa.doc")
	private String fileName;

	@ApiModelProperty(value = "文件大小")
	private String fileSize;

	@ApiModelProperty(value = "原文件ID")
	private Long originFileId;

	@ApiModelProperty(value = "0下载1流转2外发3共享4编辑")
	private Integer optType;

	@ApiModelProperty(value = "结果")
	private String result;

	@ApiModelProperty(value = "来源")
	private String source;

	@ApiModelProperty(value = "请求URI")
	private String requestUri;

	@ApiModelProperty(value = "请求方式get,post")
	private String method;

	@ApiModelProperty(value = "访问参数")
	private String params;

	@ApiModelProperty(value = "请求内容")
	private String requestContent;

	@ApiModelProperty(value = "0")
	private Integer fileLogType;

	@ApiModelProperty(value = "异常信息")
	private String exceptionMsg;

	@ApiModelProperty(value = "登录token")
	private String loginToken;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

}